<h1>Listing companias</h1>

<table>
  <tr>
    <th>Rif</th>
    <th>Nombre</th>
    <th>Telefono</th>
    <th>Direccion</th>
  </tr>

<% @companias.each do |compania| %>
  <tr>
    <td><%=h compania.rif %></td>
    <td><%=h compania.nombre %></td>
    <td><%=h compania.telefono %></td>
    <td><%=h compania.direccion %></td>
    <td><%= link_to 'Show', compania %></td>
    <td><%= link_to 'Edit', edit_compania_path(compania) %></td>
    <td><%= link_to 'Destroy', compania, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New compania', new_compania_path %>